import React from "react";
import lazyLoad from "@/routers/utils/lazyLoad";
import { LayoutIndex } from "@/routers/constant";
import { RouteObject } from "@/routers/interface";

// 表单 Form 模块
const dayStudyRouter: Array<RouteObject> = [
	{
		element: <LayoutIndex />,
		meta: {
			title: "react语法学习"
		},
		children: [
			{
				path: "/reactStudy/oldReact",
				element: lazyLoad(React.lazy(() => import("@/views/day-study/old-react/index"))),
				meta: {
					requiresAuth: true,
					title: "旧版本react",
					key: "oldReact"
				}
			},
			{
				path: "/reactStudy/newReact",
				element: lazyLoad(React.lazy(() => import("@/views/day-study/new-react/index"))),
				meta: {
					requiresAuth: true,
					title: "新版本react",
					key: "newReact"
				}
			}
		]
	}
];

export default dayStudyRouter;
